package com.backend.service.email.impl;


import com.backend.properties.EmailProperties;
import com.backend.service.email.EmailService;
import com.backend.utils.MailUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmailServiceImpl implements EmailService {

    @Autowired
    EmailProperties emailProperties;
    @Override
    public boolean send(String to, String title, String content) {
        System.out.println(emailProperties);
        boolean flag = MailUtil.sendMail(emailProperties, to, title, content);
        return flag;
    }
}
